package com.ruoyi.web.controller.tool;

import com.ruoyi.system.domain.DdPrice;

import java.util.ArrayList;
import java.util.List;

/**
 * @ProjectName: ruoyi
 * @ClassName: PriceRange
 * @Description: 价格定价
 * @Author: @Abeiv
 * @Date: 2020-3-6 9:46
 */
public class PriceRange {
    public static final Double START_PRICE = 10.00; //起步价 三公里
    public static final Double ONE_PRICE = 1.5; //4-6公里 第一档加价
    public static final Double TWO_PRICE = 2.00; //第二档加价
    public static final Double THREE_PRICE = 3.00; //第三档加价
    public static final Double FOUR_PRICE = 4.00; //第四档加价
    public static final Double FIVE_PRICE = 5.00; //第五档加价
    public static final Double SIX_PRICE = 8.00; //第六档加价


    public static final int START_RANGE = 5; //起步 5公里
    public static final int ONE_RANGE = 2; //5.01-7公里
    public static final int TWO_RANGE = 3; //7.01-10公里
    public static final int THREE_RANGE = 5; //10.01-15公里
    public static final int FOUR_RANGE = 5; //15.01-20公里
    public static final int FIVE_RANGE = 10; //20.01-30公里
    public static final int SIX_RANGE = 0; //30公里以上

    public static final List<DdPrice> list = new ArrayList<DdPrice>();

    static {
        list.add(new DdPrice(PriceRange.ONE_PRICE, PriceRange.ONE_RANGE));
        list.add(new DdPrice(PriceRange.TWO_PRICE, PriceRange.TWO_RANGE));
        list.add(new DdPrice(PriceRange.THREE_PRICE, PriceRange.THREE_RANGE));
        list.add(new DdPrice(PriceRange.FOUR_PRICE, PriceRange.FOUR_RANGE));
        list.add(new DdPrice(PriceRange.FIVE_PRICE, PriceRange.FIVE_RANGE));
        list.add(new DdPrice(PriceRange.SIX_PRICE, PriceRange.SIX_RANGE));
    }
}
